#pragma strict

function Start () {

}
	var showMainMenu:boolean = true;
	var showOptionsMenu:boolean = false;
	var showCampaignMenu:boolean = false;
	var showSoundOptions:boolean = false;
	var showDifficultyModes:boolean = false;
	var showSubtitles:boolean = false;
	var showSetter:int = 0;
	var saveDifficulty:int = 2;
    function OnGUI() {
    
    if(GUI.Button(new Rect(Screen.width * 0.25,Screen.height * 0.125,Screen.width * 0.5,Screen.height * 0.125),"OUTGUNNED")){
    showMainMenu=true;
    showOptionsMenu=false;
    showCampaignMenu=false;
    showSoundOptions=false;
    showDifficultyModes=false;
    showSetter=0;
    }
    if(showMainMenu){
	    GUI.Box(new Rect(Screen.width * 0.0625,Screen.height * 0.3125, Screen.width *0.125, Screen.height *.07125), "MAIN MENU");			//if they click this, they'll go back to the main menu
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.4125, Screen.width *0.125, Screen.height *.07125), "CAMPAIGN")){
		    showMainMenu=false;
		    showCampaignMenu=true;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.5125,Screen.width *0.125, Screen.height *.07125), "SETTINGS")){       //they'll go to settings
		    showMainMenu=false;
		    showOptionsMenu=true;
	    }        
    }
    if(showCampaignMenu){
        if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.3125, Screen.width *0.125, Screen.height *.07125), "GO BACK")){
		    showMainMenu=true;
		    showCampaignMenu=false;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.4125, Screen.width *0.3,Screen.height *.07125), "NEW CAMPAIGN")){	//the campaign menu
	    Application.LoadLevel(1);
	                  }              
	    GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.5125, Screen.width *0.3,Screen.height *.07125), "LOAD EXISTING CAMPAIGN");
            }
    if(showOptionsMenu){
        if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.3125, Screen.width *0.125, Screen.height *.07125), "GO BACK")){
	    showMainMenu=true;
	    showOptionsMenu=false;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.4125, Screen.width *0.15,Screen.height *.07125), "SOUND OPTIONS")){
	    	showMainMenu=false;
	    	showOptionsMenu=false;
	    	showSoundOptions=true;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.5125, Screen.width *0.125,Screen.height *.07125), "DIFFICULTY")){
	    showOptionsMenu=false;
	    showMainMenu=false;
	    showDifficultyModes=true;
	    showSetter=saveDifficulty;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.6125, Screen.width * 0.2275, Screen.height *.07125), "SHOW THE SUBTITLES?")){
	    	if(showSubtitles==false){
	    	showSubtitles=true;
	    	}
	    	else{
	    	showSubtitles=false;
	    	}
	    }
	    if(showSubtitles){
	   	    GUI.Button(new Rect(Screen.width * 0.29, Screen.height * 0.6125, 50.0,Screen.height *.07125), "YES");
	    }
	    if(showSubtitles==false){
	   	    GUI.Button(new Rect(Screen.width * 0.29, Screen.height * 0.6125, 50.0,Screen.height *.07125), "NO");
	    }
	    }
	if(showSoundOptions){
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.3125, Screen.width *0.125, Screen.height *.07125), "GO BACK")){
	    showMainMenu=false;
	    showOptionsMenu=true;
	    showSoundOptions=false;
	    }
	    GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.4125, Screen.width *0.125,Screen.height *.07125), "MASTER VOLUME");
	    GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.5125, Screen.width *0.125,Screen.height *.07125), "SPEECH VOLUME");
	    GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.6125, Screen.width *0.125,Screen.height *.07125), "EFFECTS VOLUME");
	    }
	if(showDifficultyModes){
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.3125, Screen.width *0.125, Screen.height *.07125), "GO BACK")){
	    showMainMenu=false;
	    showOptionsMenu=true;
	    showDifficultyModes=false;
	    showSetter=0;
	    
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.4125, Screen.width *0.125, Screen.height *.07125), "PATHETIC")){
	    showSetter=1;
	    saveDifficulty=1;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.5125, Screen.width *0.125, Screen.height *.07125), "ADEQUATE")){
	    showSetter=2;
	    saveDifficulty=2;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.6125, Screen.width *0.125, Screen.height *.07125), "BRUTAL")){
	    showSetter=3;
	    saveDifficulty=3;
	    }
	    if(GUI.Button(new Rect(Screen.width * 0.0625, Screen.height * 0.7125, Screen.width *0.125, Screen.height *.07125), "GODLIKE")){
	    showSetter=4;
	    saveDifficulty=4;
	    }
	    if(showSetter==1){
	    GUI.Button(new Rect(Screen.width * 0.1875, Screen.height * 0.4125, Screen.width *0.175,Screen.height *.07125), "<-- SET TO THIS");
	    }
	    if(showSetter==2){
	    GUI.Button(new Rect(Screen.width * 0.1875, Screen.height * 0.5125, Screen.width *0.175,Screen.height *.07125), "<-- SET TO THIS");
	    }
	    if(showSetter==3){
	    GUI.Button(new Rect(Screen.width * 0.1875, Screen.height * 0.6125, Screen.width *0.175,Screen.height *.07125), "<-- SET TO THIS");
	    }
	    if(showSetter==4){
   	    GUI.Button(new Rect(Screen.width * 0.1875, Screen.height * 0.7125, Screen.width *0.175,Screen.height *.07125), "<-- SET TO THIS");
	    }
	}
}

	function Update () {
}
